//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03B
TN_Widget.CreateTable([['Craig David','Palladium Times Square','New York, NY','Friday','5/10/2024','8:00 PM','6265128','Craig-David-5-10-2024'],['Blind Guardian','Palladium Times Square','New York, NY','Sunday','5/12/2024','8:00 PM','6115931','Blind-Guardian-5-12-2024'],['Black Veil Brides','Palladium Times Square','New York, NY','Wednesday','5/15/2024','7:00 PM','6149796','Black-Veil-Brides-5-15-2024'],['Periphery','Palladium Times Square','New York, NY','Saturday','5/18/2024','7:30 PM','6265077','Periphery-5-18-2024'],['The Making Of A King: Nu-Look','Palladium Times Square','New York, NY','Saturday','6/15/2024','8:00 PM','6416225','The-Making-Of-A-King--Nu-Look-6-15-2024'],['Sidiki Diabate','Palladium Times Square','New York, NY','Friday','7/5/2024','7:00 PM','6395377','Sidiki-Diabate-7-5-2024'],['Kittie','Palladium Times Square','New York, NY','Friday','7/19/2024','7:00 PM','6404449','Kittie-7-19-2024'],['Taylor Shines - The Laser Spectacular','Palladium Times Square','New York, NY','Friday','8/2/2024','8:00 PM','6386914','Taylor-Shines---The-Laser-Spectacular-8-2-2024'],['Michael Blaustein','Palladium Times Square','New York, NY','Friday','8/9/2024','8:00 PM','6136947','Michael-Blaustein-8-9-2024'],['Hawthorne Heights','Palladium Times Square','New York, NY','Thursday','9/12/2024','5:30 PM','6384633','Hawthorne-Heights-9-12-2024'],['La Cotorrisa','Palladium Times Square','New York, NY','Sunday','9/15/2024','7:00 PM','6399049','La-Cotorrisa-9-15-2024'],['Underoath','Palladium Times Square','New York, NY','Friday','9/20/2024','7:50 PM','6383928','Underoath-9-20-2024'],['Underoath','Palladium Times Square','New York, NY','Saturday','9/21/2024','7:50 PM','6395906','Underoath-9-21-2024'],['Heather McDonald','Palladium Times Square','New York, NY','Friday','10/11/2024','8:00 PM','6374985','Heather-McDonald-10-11-2024'],['Enter Shikari','Palladium Times Square','New York, NY','Saturday','10/19/2024','7:00 PM','6400255','Enter-Shikari-10-19-2024'],['Selda Bagcan','Palladium Times Square','New York, NY','Friday','11/8/2024','9:00 PM','6313450','Selda-Bagcan-11-8-2024'],['Girls Gotta Eat','Palladium Times Square','New York, NY','Friday','12/13/2024','8:00 PM','6377611','Girls-Gotta-Eat-12-13-2024'],['Girls Gotta Eat','Palladium Times Square','New York, NY','Saturday','12/14/2024','8:00 PM','6354212','Girls-Gotta-Eat-12-14-2024']],'Best Buy Theater','http://www.ticketnetwork.com/ticket/Best-Buy-Theater-events.aspx');